﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LibBinary.FileData
{
    public class EmptyData : AbstractFileData
    {
        public EmptyData(AbstractFileData parent)
            : base(parent)
        {
        }

        public override AbstractFileData GetChild(int index)
        {
            throw new ReadingFormatException("GetChild in EmptyData.");
        }

        public override string ToString()
        {
            return "<empty>";
        }
    }
}
